<?php
/*
 * Created on Sep 18, 2007
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 

if($_POST['table'] != "") {
	$updateHasBeenRun = true; /*Flag for ViewGeneric to output an update sucuess print */
	$table = $_POST['table'];
	if($table == 'Users' || $table == 'ContainerType'|| $table == 'Container' ) {
		unset($_POST['1']['Name']);
		unset($_POST['1']['pass2']);
	}
	unset($_POST['size']);
	unset($_POST['table']);
	unset($_POST['update']);
	unset($_POST['id']);
	unset($_POST['ContainerID']);
	//echo print_r($_POST)
	adminAdd($_POST,$table);
	//Adds boxes to a newly created container
	if($table == "Container") {
		$containerTypeID =$_POST['1']['ContainerTypeID'];
		$containerID = mysql_insert_id(); //gets is of most revently inserted item;
 		createEmptyBoxes($containerID, $containerTypeID);
	}
}
?>
